<h1>日志管理</h1>
<div class="post_list post_list_bg" style="width:95%; height: 25px; line-height: 25px;">
  <div style="float: left; width: 25%"><b>文件名</b></div>
  <div style="float: left; width: 25%"><b>大小</b></div>
  <div style="float: right; width: 50%"> <b>操作</b></div>
</div>
<% @log_file_arr.each do |file| %>
<div class="post_list" style="width:95%; height: 22px; line-height: 22px;" onmouseover="$(this).css('background-color','#DDF0DD');" onmouseout="$(this).css('background-color','');">
    <div style="float: left; width: 25%"><%= file[0] %></div>
    <div style="float: left; width: 25%" id="<%= size_div_id = file[0].split('.').first %>"><%= number_to_human_size(file[2]) %></div>
    <div style="float: right; width: 50%; color: #660066">
      <a href="javascript:void(0);" onClick="LogAdmin.getLogSource('<%= file[1] %>');">查看</a>　
      <a href="/site/log_admin?file_path=<%= file[1] %>">下载</a>　
      <a href="javascript:void(0);" onClick="LogAdmin.clearLog('<%= file[1] %>','<%= size_div_id %>')">清空</a>　
    </div>
  </div>
<% end %>
<div id="log_area"></div>